/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xenon3d.scene;

import com.jogamp.opengl.util.texture.TextureIO;

/**
 * An enumeration of file formats supported by the texture loader.
 * 
 * @author Volker Everts
 * @version 0.1 - 18.11.2011: Created
 */
public enum FileFormat {
    
    /** The file format id to indicate a DirectDraw Surface file. */
    dds (TextureIO.DDS),
    
    /** The file format id to indicate a GIF file. */
    gif (TextureIO.GIF),
    
    /** The file format id to indicate a JPEG file. */
    jpg (TextureIO.JPG),
    
    /** The file format id to indicate a PNG file. */
    png (TextureIO.PNG),
    
    /** The file format id to indicate a SGI file. */
    sgi (TextureIO.SGI),
    
    /** The file format id to indicate an SGI RGB file. */
    rgb (TextureIO.SGI_RGB),
    
    /** The file format id to indicate a Targa file. */
    tga (TextureIO.TGA),
    
    /** The file format id to indicate a TIFF file. */
    tif (TextureIO.TIFF);
    
    /** The file format id value. */
    private String value;
    
    /**
     * Creates a new FileFormat
     * @param value the format id value
     */
    FileFormat(String value) {
        this.value = value;
    }
    
    /**
     * Returns the file id value.
     * @return the file id value
     */
    public String value() {
        return value;
    }
    
} // end enum FileFormat